import service from '@/http';
import { PageDTO, PageRetVO, RetVO } from '@/http/public.type.ts';
import { AlbumList, PhotoList } from '@/pages/album/album.types.ts';

export function _pageAlbumList(
  param: PageDTO
): Promise<PageRetVO<AlbumList[]>> {
  return service.post('/api/v1.0/album/pageAlbumList', param);
}

export function _getPhotoListByAlbumId(
  param: string
): Promise<RetVO<PhotoList[]>> {
  return service.post('/api/v1.0/photo/getPhotoListByAlbumId', { id: param });
}
